'use strict';

const Controller = require('../core/base_controller');

class NewsController extends Controller {
    //获取消息彪
    async getList() {
        this.tc(await this.ctx.service.news.getList());
    }
    //好友表
    async getGoodList() {
        this.tc(await this.ctx.service.news.getGoodList());
    }
    //删除
    async delNotice() {
        this.tc(await this.ctx.service.news.delNotice());
    }
    async send() {
        this.tc(await this.ctx.service.news.sendNews());
    }
}

module.exports = NewsController;
